" My Settings
syntax on
set backspace=2  "enable backdelete key
set tabstop=4
set shiftwidth=4
set expandtab
set hlsearch
set cursorline   
set shiftwidth=4
set softtabstop=4 
set tabstop=4 
set nu
set ruler
set relativenumber
set linespace=0
set nocompatible              " be iMproved, required
set ic   "ignore case
set ai   "auto indent
set si   "??
set cindent
set backspace=eol,start,indent
set cc=80
set mouse=a
set clipboard=unnamedplus
set paste
vnoremap <C-r> "hy:%s/<C-r>h//gc<left><left><left>


autocmd InsertEnter * :set norelativenumber "插入模式下撤下相对行号
autocmd InsertLeave * :set relativenumber   "普通模式下加上相对行号
